
from SVM import SVM
from create_data_sets import DatasetAcess
data = DatasetAcess()
training_set = data.get_training_set()
new_training_set = data.get_dataset('new_training_set.dat')
test_set = data.get_test_set()

svm = SVM()
svm.train(training_set)
acurracy= svm.test( test_set )
print 'old acurracy: ',acurracy

svm = SVM()
svm.train(new_training_set)
acurracy= svm.test( test_set )
print 'news acurracy: ',acurracy